﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using GONES.IBLL;

public partial class Console_System_Permissions_PermissionsEdit : CPage
{
    public string PermissionsId { get; set; }
    public string PCode { get; set; }
    public string PName { get; set; }
    public string Iconcls { get; set; }
    public string SortNum { get; set; }
    public string Remark { get; set; }

    protected void Page_Load(object sender, EventArgs e)
    {
        PermissionsId = Request.QueryString["ID"].ToString();
        var permissionsManager = AppContext.GetObject("S_PermissionsManager") as IS_PermissionsManager;
        GONES.Model.S_Permissions permissions = new GONES.Model.S_Permissions();
        permissions = permissionsManager.Get(PermissionsId);
        if (permissions != null)
        {
            PName = permissions.Pname.Trim();
            PCode = permissions.Pcode.Trim();
            SortNum = permissions.SortNum.ToString();
            Iconcls = permissions.Iconcls;
            Remark = permissions.Remark;
        }
    }
}